//
// Created by hay boy on 2022/7/4.
//

#ifndef ALGORITHMS_QUEUEEXCEPTION_H
#define ALGORITHMS_QUEUEEXCEPTION_H
#include <exception>
#include <string>
using namespace std;
class QueueEmpty:public exception{
public:
    string error_mes;
    explicit QueueEmpty(){
        error_mes="queue empty error";
    }
    const char * what() const noexcept override{
        return error_mes.c_str();
    }
};
#endif //ALGORITHMS_QUEUEEXCEPTION_H
